package com.boc.langxiang.contract.me;

import android.widget.PopupWindow;

import com.boc.langxiang.contract.BaseView;
import com.boc.langxiang.entity.response.ProductListEntity;
import com.boc.langxiang.presenter.BasePresenter;

import java.util.List;

/**
 * Created by admin on 2016/6/24.
 */
public interface OrdersWaitPayFragmentContract {

    interface View extends BaseView {

        void setBackgroundAlpht(float value);

        void showPopupWindow(android.view.View view, PopupWindow popupWindow);

        void onCancelSureClick(PopupWindow cancelPopupWindow, String id);

        void onCancelGiveUpClick(PopupWindow cancelPopupWindow);

        /**
         * 获取到的待付款
         * @param list
         */
        void getPayOrders(List<ProductListEntity> list);

        void startDetailActivity(String id,String totalPrice);

        /**
         * 取消订单成功
         */
        void cancelOrdersSuccess();

        /**
         * 付款
         * @param item
         */
        void onPay(ProductListEntity item);

//        void onPaySuccess();
    }

    interface Presenter extends BasePresenter {
        void toPayOrders(String page);

        void cancelOrders(String id);

    }
}
